<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>平台管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
</head>
<body class="layui-layout-body">

sdjfjasldfjlsajflasjflasjflasjlasfjlasf

<script src="/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        //静态资源所在路径
        base: '/layuiadmin/'
    }).extend({
        //主入口模块
        index: 'lib/index'
    }).use(['index'],function () {
        var $ = layui.$,
        admin = layui.admin,
        element = layui.element,
        layer = layui.layer;

        element.render();

        var active = {
            password1: function () {
                layer.open({
                    title:'修改密码',
                    type: 2,
                    shadeClose: true,
                    area: ['520px', '350px'],
                    content: '/base/passwordUpdate'
                });
            },
            clear:function(){
                layer.confirm('清除缓存？', function(){
                    $.ajax({
                        url: "/clear",
                        data: {},
                        dataType: "json",
                        type: "post",
                        success: function (data) {
                            if(data.status){
                                layer.msg('操作成功',{icon:1});
                            }
                        }
                    });
                });
            },
            tip1:function(){
                layer.tips('对分类及协议变更后请清除缓存', this, {
                    tips: 1
                });
            }
        };

        $('#right-layer .update .updatePassword').on('click', function(){
            var type = $(this).data('type');
            active[type] && active[type].call(this);
        });
        $("#clear .clear").on('click',function () {
            var type = $(this).data('type');
            active[type] && active[type].call(this);
        });
        $(".clear").on('mouseover',function () {
            active['tip1'] && active['tip1'].call(this);
        })
    });
</script>
</body>
</html>


